/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFrmHelp.java
 *
 * Created on Jun 16, 2009, 10:02:37 PM
 */

package org.grid.maingui;

import javax.swing.JDesktopPane;

/**
 *
 * @author wellington
 */
public class JFrmHelp extends javax.swing.JInternalFrame {
    // <editor-fold defaultstate="collapsed" desc="Singleton">
    private static JFrmHelp instance;

    public static JFrmHelp getInstance(JDesktopPane owner) {
        if (instance == null) {
            instance = new JFrmHelp();
        }
        owner.add(instance);
        instance.setVisible(true);
        owner.getDesktopManager().activateFrame(instance);
        return instance;
    }
    public static JFrmHelp getInstance() {
        if (instance == null) {
            instance = new JFrmHelp();
        }
        return instance;
    }
    /** Creates new form JFrmNode */
    public JFrmHelp() {
        initComponents();
    }
    // </editor-fold>

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();

        setClosable(true);
        setResizable(true);
        setTitle("Processamento de LOG's");
        setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/org/grid/maingui/main.png"))); // NOI18N
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/grid/resources/process48x48.png"))); // NOI18N
        jLabel1.setText("Processamento Distribuído de LOG's");
        getContentPane().add(jLabel1, new java.awt.GridBagConstraints());

        jLabel2.setText("Desenvolvido por Wellington Della Mura");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        getContentPane().add(jLabel2, gridBagConstraints);

        jLabel3.setText("<html><a href=\"mailto:della.mura@gmail.com\">della.mura@gmail.com</a>");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        getContentPane().add(jLabel3, gridBagConstraints);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-421)/2, (screenSize.height-168)/2, 421, 168);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    // End of variables declaration//GEN-END:variables

}
